package com.xyoto.community.entity.main;

import com.xyoto.community.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * Author: 廖振辉
 * Date: 2021/11/17
 * Description: 金句实体类
 */
@ApiModel("金句实体类")
@Data
@NoArgsConstructor
public class Proverb extends Base {

    @ApiModelProperty("句子内容")
    private String sentence;

    @ApiModelProperty("作者")
    private String author;

    public Proverb(String sentence, String author) {
        this.sentence = sentence;
        this.author = author;
    }
}
